#ifndef __SkillButton_H__
#define __SkillButton_H__
#include "cocos2d.h"
#include <functional>
using namespace std;
USING_NS_CC;
class CSkillButton : public Node
{
public:
	CSkillButton();
	~CSkillButton();

	CREATE_FUNC(CSkillButton);
	virtual bool init();
	void addAttackEvent(function<void()> skillEvent);
	bool onButtonTouchBegin(Touch* touch, Event* event);
private:
	function<void()> m_skillEvent;
	Sprite* m_pBackground;
	Sprite* m_pSkillPic;
	Sprite* m_pSkillBkPic;
	Size visibleSize;
	Vec2 origin;

};



#endif